/*
 * Copyright @ JuCheap All rights reserved.
 * 
 * 功能描述:用户创建数据模型文件
 * 作者: JuCheap
 * 时间: 11/20/2019 17:19:06
 */
using System.ComponentModel.DataAnnotations;

namespace JuCheap.Core.Model
{
    /// <summary>
    /// 用户创建模型
    /// </summary>	
    public partial class UserCreateRequestDto
    {
        /// <summary>
        /// 登陆账号
        /// </summary>
        [Display(Name = "登陆账号")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(20, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string LoginName { get; set; }

        /// <summary>
        /// 登陆密码
        /// </summary>
        [Display(Name = "登陆密码")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(20, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Password { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Display(Name = "姓名")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Name { get; set; }

        /// <summary>
        /// 是否是管理员
        /// </summary>
        public bool IsAdmin { get; set; }

        /// <summary>
        /// 所属部门Id
        /// </summary>
        [Display(Name = "所属部门")]
        public string DepartmentId { get; set; }

    }
}
